include( "shared.lua" )
include("MakeThings.lua")
include("teams.lua")

local view = {}
function GM:CalcView( ply, origin, angles, fov )
	view.vm_origin = origin
	view.vm_angles = angles
	view.fov = fov
	view.origin = origin + Vector( 0, 0, self.ZDist / self.Zoom )
	local ang = ply:GetAimVector():Angle()
	view.angles = Angle( 90, ang.y, 0 )
	ang.p = 0
	LocalPlayer():SetEyeAngles( ang )
	return view
end